// IM 核心库
import miniCore, { type MiniCore } from "easemob-websdk/miniCore/miniCore";
// 聊天室
import * as chatroomPlugin from "easemob-websdk/chatroom/chatroom";
//联系人以及消息
import * as contactPlugin from "easemob-websdk/contact/contact";
let EMClient= {} as MiniCore
// 实例化SDK
EMClient = new miniCore({
  appKey:'easemob-demo#support'
})
/* 按需导入注册相关插件 */
//注册联系人&消息功能插件
EMClient.usePlugin(contactPlugin,'contact')
//注册聊天室功能插件
EMClient.usePlugin(chatroomPlugin,'chatroom')

export {EMClient}
